home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 61
/
Volume 61 - JOGO DISK .iso
/
Games
/
fruit_cake_decoration.swf
/
scripts
/
DefineSprite_578
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-03-12
|
1KB
|
58 lines
stop();
_root.d16_over = "off";
x = this._xscale;
y = this._yscale;
vx = 0;
vy = 0;
a = 2;
b = 2;
this.onEnterFrame = function()
{
vx = (vx + (targetx - x) / a) / b;
vy = (vy + (targety - y) / a) / b;
x += vx;
y += vy;
this._xscale = x;
this._yscale = y;
if(_root.d16_over == "off")
{
targetx = 70;
targety = 70;
}
this.onRollOver = function()
{
_root.eps3_sound.start();
_root.d16_over = "on";
targetx = 100;
targety = 100;
};
this.onRollOut = function()
{
targetx = 70;
targety = 70;
};
};
this.onPress = function()
{
_root.eps1_sound.start();
_root.level = _root.level + 1;
_root.count16 = _root.count16 + 1;
_root.createEmptyMovieClip("dec16_" + _root.count16 + "_mc",_root.level);
_root.attachMovie("dec16_link","dec16_" + _root.count16 + "_mc",_root.level);
_root["dec16_" + _root.count16 + "_mc"].startDrag();
_root["dec16_" + _root.count16 + "_mc"]._x = 624;
_root["dec16_" + _root.count16 + "_mc"]._y = 137;
this.onRelease = function()
{
_root.eps2_sound.start();
_root["dec16_" + _root.count16 + "_mc"].stopDrag();
};
this.onReleaseOutside = function()
{
_root.eps2_sound.start();
targetx = 70;
targety = 70;
_root["dec16_" + _root.count16 + "_mc"].stopDrag();
};
};